﻿<Window x:Class="DaphneTranslatorWPF.View.CultureSelectionDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Select the culture" Height="300" Width="400" 
        Background="{DynamicResource WindowBackgroundBrush}"
        WindowStyle="ToolWindow"
        WindowStartupLocation="CenterOwner"
        >
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition Height="180" />
            <RowDefinition Height="*" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0">Culture filter:</TextBlock>
        <TextBox Grid.Row="0" Grid.Column="1" HorizontalAlignment="Stretch" Text="{Binding Path=CultureFilter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
        </TextBox>
        <ListBox Grid.Row="1" Grid.ColumnSpan="2" ItemsSource="{Binding Path=Cultures}" SelectedValue="{Binding Path=SelectedCulture, Mode=TwoWay}" HorizontalContentAlignment="Stretch" />
        <StackPanel Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Right" Orientation="Horizontal">
            <Button IsDefault="True" Margin="2" Click="Button_Click" Padding="3" >Select the culture</Button>
            <Button IsCancel="True" Margin="2" Padding="3">Cancel</Button>
        </StackPanel>       
    </Grid>
</Window>
